package com.example.gybicycle.entity;

import com.example.gybicycle.common.entity.Entity;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import java.util.Date;
import lombok.Data;


@Data
@Schema(name ="故障")
public class BikeFailure   extends Entity {
    @Schema(description = "故障ID")
    private String id;
    @Schema(description = "车辆ID")
    private String bikeId;
    @Schema(description = "车辆ID名称")
    private  String bikeName;
    @Schema(description = "订单ID")
    private String memberOrderId;
    @Schema(description = "订单ID名称")
    private  String memberOrderName;
    @Schema(description = "故障位置")
    private String failureSite;
    @Schema(description = "故障时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date failureTime;
    @Schema(description = "故障状态 0 未处理 1 有故障 2 无故障")
    private Integer failureState;
    @Schema(description = "确认人")
    private String confirmBy;
    @Schema(description = "确认人名称")
    private  String confirmName;
    @Schema(description = "确认时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date confirmTime;
    @Schema(description = "骑行人名称")
    private  String memberName;
    @Schema(description = "骑行人电话")
    private  String memberTelphone;

}